package com.zhang.server.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin {

    private Integer id;
    private String username;

    private String phone;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss") // 日期格式化
    private String createtime;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss") // 日期格式化
    private String updatetime;

    private String email;
    private String password;
    private boolean status; // 是否已被禁用

}